﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.SPI
{
    public class ImportDef
    {
        /// <summary>
        /// CDO列名称
        /// </summary>
        public string ColName { get; set; }
        /// <summary>
        /// Excel列名
        /// </summary>
        public string ExcelColName { get; set; }
        /// <summary>
        /// 列数
        /// </summary>
        public int ColNum { get; set; }
        /// <summary>
        /// 导入说明
        /// </summary>
        public string Explain { get; set; }
        /// <summary>
        /// 导入规则 0导入 1忽略 2系统生成
        /// </summary>
        public int ImportRule { get; set; }
        /// <summary>
        /// 能否必填
        /// </summary>
        public bool IsRequired { get; set; }
        /// <summary>
        /// 是否作为录入帮助
        /// </summary>
        public bool IsHelp { get; set; }
        /// <summary>
        /// 是否唯一
        /// </summary>
        public bool IsUnique { get; set; }
        /// <summary>
        /// 取值范围定义
        /// </summary>
        public string DataSource { get; set; }
        /// <summary>
        /// 系统生成
        /// </summary>
        public string Script { get; set; }
        /// <summary>
        /// MetaDataID
        /// </summary>
        public string ActionID { get; set; }
        /// <summary>
        /// Action类型 2Action 3DQ
        /// </summary>
        public int ActionType { get; set; }
        /// <summary>
        /// 帮助入参
        /// </summary>
        public List<ActionParameter> Parameters { get; set; }
        /// <summary>
        /// 源字段
        /// </summary>
        public string DisplayField { get; set; }
        /// <summary>
        /// 目标字段
        /// </summary>
        public string ValueField { get; set; }
    }
}
